{extend name="_container/table"}
{block name="left"}
<a href="{:url('add',['table_id'=>input('table_id')])}" class="layui-btn iframe" data-title="添加关系" data-width="80%" data-height="80%">添加关系</a>
<a href="{:url('auto/table/generate')}" class="layui-btn  layui-btn-warm ajax_del" data-msg="确定生成代码吗？">生成代码</a>

{/block}

{block name="right"}
<span class="layui-btn iframe" data-href="{:url('code')}" data-height="100%" data-width="100%">Code</span>
{/block}

{block name="table_header"}
<th>id</th>
<th>主表</th>
<th>关系</th>
<th>副表</th>
<th>操作</th>

{/block}

{block name="table_body"}
{if !$v.is_sys}
<tr>
    <td>{$v.id}</td>
    <td>{$v.masterName}</td>
    <td> {if $v.middleName} 通过 - {$v.middleName} - {/if} {$v.typeName}</td>
    <td>{$v.sliverName}</td>

    <td>
        {if !$v.is_sys}
        <a href="{:url('delete',['id'=>$v.id])}" class="layui-btn layui-btn-sm layui-btn-danger ajax_del">删除</a>
        {/if}
    </td>
</tr>
{/if}
{/block}

{block name="table_footer"}
{/block}

{block name="js"}

{/block}
{/extend}
